﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace IDAL
{
    public interface IBaseDal<T> where T:BaseEntity,new()
    {
        public Task<int> AddAsync(T model);
        public Task<int> UpdateAsync(T model);
        public Task<int> DeleteAsync(T model);
        public Task<List<T>> GetAll();
        public Task<T> GetById(Guid id);
        public Task<List<T>> GetDataByChoose(Expression<Func<T, bool>> whereLambda);
    }
}
